home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-06-29 | 1.2 KB | 63 lines | [TEXT/MPS ] |
- #ifndef SQLPLAT_H
- #define SQLPLAT_H
-
- #ifndef EXPORT
- #define EXPORT _export
- #endif
-
- #ifdef WIN32
- #define SQL_API __stdcall
- #else
- #define SQL_API EXPORT CALLBACK
- #endif
- #define RETCODE_SQL_API RETCODE SQL_API
-
- #ifdef WIN32
- #define TRANSAPI __stdcall
- #else
- #define TRANSAPI EXPORT FAR PASCAL
- #endif
- #define TRANSPREAPI
- #define BOOL_TRANSAPI BOOL TRANSAPI
-
- #ifdef WIN32
- #define INSTAPI __stdcall
- #else
- #define INSTAPI EXPORT FAR PASCAL
- #endif
- #define INSTPREAPI
- #define BOOL_INSTAPI BOOL INSTAPI
- #define PROFILE_CB int // type used to pass/return a bytecount in SQLGetPrivateProfileString
- #define PROFILE_CB_INSTAPI PROFILE_CB INSTAPI
-
- #ifdef WIN32
- #define LDOUBLE_IS_DOUBLE 1
- #else
- #define LDOUBLE_IS_DOUBLE 0
- #endif
-
- #ifdef WIN32
- #define PUSH_POP_PACK2 1 /* Assume two byte strucutre packing throughout */
- #else
- #define PUSH_POP_PACK2 0
- #endif
-
- #ifndef WIN32
- #define SQL_PROFILE_STRING 0
- #else
- #define SQL_PROFILE_STRING 1
- #endif
- #define INSTALL_API 1
-
- #define WORDPARAM WORD
-
- #ifndef WINVER
- #define WINVER 0x300 // Assume Windows 3.0
- #endif
-
- #if (WINVER < 0x30a)
- // Win 3.1 Types -----------------------------------------------------------
- typedef const char FAR* LPCSTR;
- #endif
-
- #endif // SQLPLAT_H